arrange()
filter()
Using dplyr’s mutate():
Wide Data
Long Data
There are two sets of methods that are explained below:
gather() and spread() from the tidyr package. This is a newer interface to the reshape2 package.melt() and dcast() from the reshape2 package.